package com.yundasys.lab16springbootplus.lab16springbootplus.beandefinitionregistrar;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @PACKAGE_NAME: com.yundasys.lab16springbootplus.lab16springbootplus.beandefinitionregistrar
 * @NAME: MyInvocation
 * @USER: jiangta
 * @DATE: 2022/9/22
 * @TIME: 3:35 下午
 * @PROJECT_NAME: springboot-labs
 */
public class MyInvocation implements InvocationHandler {

//    final Object target;
//
//    public MyInvocation(Object target) {
//        this.target = target;
//    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("This is a proxy of ImportTestDao");
        //return method.invoke(this.target, args);
        return null;
    }
}
